package com.example.spring.bean.load08lifecycle.orderCompare;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * 比较三种生命周期处理顺序
 * <p>
 * <p>
 */
public class OrderTest {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(InitConfig.class);

        /**
         * Door constructor...
         * Door jsr250 postConstruct...
         * Door impl afterPropertiesSet...
         * Door method init...
         * Door jsr250 preDestroy...
         * Door impl destroy...
         * Door method close...
         */

        context.close();
    }
}
